package cn.xy.system.mapper;

import cn.xy.system.domain.Permission;
import cn.xy.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xy
 * @since 2022-06-22
 */
public interface PermissionMapper extends BaseMapper<Permission> {
    //通过controller路径查询
    Permission loadBySn(String permissionSn);
    /**
     *根据当前登录人查询所拥有的的权限
     *
     */
    List<String> loadPermissionByLoginInFoId(Long id);
}
